Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python3
- import sys
- import linuxcnc
- try:
- s = linuxcnc.stat() # create a connection to the status channel
- s.poll() # get current values
- except linuxcnc.error:
- #print("error", detail)
- sys.exit(1)
- for x in dir(s):
- if not x.startswith("_"):
- print(x, getattr(s,x))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement